﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace PrintTaxTester
{
    public partial class Form1 : Form                           
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            var result = comReader1.Print("某某业务", "办理成功", "执行xxx完毕，成功", "2018-02-28", "XXX公司", "91232143245324214324", "SEE001TERM", "Microsoft Print to PDF", @"F:\PrintTax\PrintTaxTester\TAXTPL.html");
            MessageBox.Show(result.ToString());
            MessageBox.Show(comReader1.ErrMsg);
        }

        private void button2_Click(object sender, EventArgs e)
        {
        }
    }
}
